package com.weds.data_sync.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 脚本分组中间表
 * </p>
 *
 * @author lhw
 * @since 2023-12-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("public.data_sync_script_relation")
@Schema(name = "DataSyncScriptRelationDO", description = "脚本分组中间表")
public class DataSyncScriptRelationDO {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "脚本id")
    @TableField("script_id")
    private Long scriptId;

    @Schema(description = "分组id")
    @TableField("group_id")
    private Long groupId;

    @Schema(description = "默认脚本: 1 是 0 否")
    @TableField("is_default")
    private Integer isDefault;

    @Schema(description = "启用状态")
    @TableField("use_status_id")
    private Integer useStatusId;

    @Schema(description = "删除状态")
    @TableField("is_delete")
    private Integer isDelete;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "创建时间")
    @TableField("ct_date")
    private LocalDateTime ctDate;

    @Schema(description = "修改时间")
    @TableField("lt_date")
    private LocalDateTime ltDate;

    @Schema(description = "创建用户id")
    @TableField("ct_user_id")
    private Integer ctUserId;

    @Schema(description = "修改用户id")
    @TableField("lt_user_id")
    private Integer ltUserId;
}
